<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <link href="${ctx}/css/common.css" type="text/css" rel="stylesheet">
</head>
<head>
    <title>菜系列表</title>
</head>
<body>
<label>${msg}</label>

<form action="${ctx}/goToAddFootType" method="get">
    <input type="submit" value="添加">
</form>

<form action="AddFoodType.jsp" method="get">
    <input type="submit" value="添加测试">
</form>


<a href="${ctx}/goToAddFootType">添加</a>

<table id="" border="1px">
    <tr>
        <th>编号</th>
        <th>菜系名称</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${foodTypeList}" var="foodType">
        <tr>
            <td>${foodType.typeId}</td>
            <td>${foodType.typeName}</td>
            <td>
                <a href="${ctx}/editFoodType?foodTypeId=${foodType.typeId}">编辑</a>
                <a href="${ctx}/delFoodType/${foodType.typeId}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
